<?php


error_reporting(E_ALL);

session_start(); //开启session

/**
 * 是否在前台
 * @var boolean
 */
define('IN_FRONTEND', true);

define('ROOT_PATH', dirname(__FILE__));

define('CONFIG_PATH', ROOT_PATH . '/config');
define('INCLUDE_PATH', ROOT_PATH . '/include'); //include目录的地址
define('PEAR_PATH', INCLUDE_PATH . '/lib/pear'); //include目录的地址

require './core/simpleMVC.php';

new SimpleMVC(
    array(
        'external_libs' => array(),
        'project' => 'frontend',
        'default_app' => 'default',
        'default_ctl' => 'default',
        'default_act' => 'index',
    )
);
